package com.jx.springcloud.entiy;

public class CommentResult<T> {
    private int code;
    private String comment;
    private T      data;

    public CommentResult(){}

    public CommentResult(int code, String comment, T t){
        this.code = code ;
        this.comment = comment;
        this.data = t;
    }

    public CommentResult(int code , String comment){
        this.code = code;
        this.comment = comment;
    }

    public int getCode() {
        return code;
    }

    public String getComment() {
        return comment;
    }

    public T getData() {
        return data;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "CommentResult{" +
                "code=" + code +
                ", comment='" + comment + '\'' +
                ", data=" + data +
                '}';
    }
}
